<!--{template admin/header_tpl}-->

<div class="mainarea">
	<div class="maininner">
		<div class="tabs_header">
			<ul class="tabs">
				<li><a href="<!--{eval echo base_url()}-->admin/admin_activity/index"><span>浏览主页活动</span></a></li>
				<li><a href="<!--{eval echo base_url()}-->admin/admin_activity/downindex_activity/"><span>浏览下架活动</span></a></li>
				<li class="null"><a href="<!--{eval echo base_url()}-->admin/admin_activity/add_activity">添加主页活动</a></li>
			</ul>
		</div>
<!--加载数据-->
		<form action="<!--{eval echo base_url()}-->admin/admin_activity/deletes" method="post" accept-charset="utf-8">


			<div class="bdrcontent">
				<table class="formtable" cellspacing="5" cellpadding="5">
					<th style="width:2em;">id</th>
					<th style="width:300px;">活动</th>
					<th>来源</th>
					<th>分类</th>
					<th>开始时间-结束时间</th>
					<th>创建时间</th>
					<th>操作</th>
						<!--{loop $activitys $key $activity}-->
						<tr>
							<td>{$activity[aid]}
								<input type="checkbox" name="ids[]" value="{$activity[aid]}" id="" value="{$activity[aid]}">
							</td>
							<td>{$activity[title]}<br/>
								 <a href="{$activity[url]}" target="_blank"><img src="{$activity[act_img]}" width="300" height="100"></a>
							</td>
							<td>{$activity[fromname]}</td>
							<td>{$activity[catname]}</td>
							<td>
								<span style="color:#587CD9;font-weight: bold;"><!--{date('Y-m-d', $activity['starttime'])}--></span><br/>
								<span style="color:#D80000;font-weight: bold;"><!--{date('Y-m-d', $activity['endtime'])}--></span>
							</td>
							<td><!--{date('Y-m-d H:i:s', $activity['dateline'])}--></td>

							<td>
								<a href="<!--{eval echo base_url()}-->admin/admin_activity/edit_activity/{$activity['aid']}">编辑</a>
								| <a href="<!--{eval echo base_url()}-->admin/admin_activity/upindex/{$activity['aid']}">上架</a> 
								| <a href="<!--{eval echo base_url()}-->admin/admin_activity/delete/{$activity['aid']}" onclick="return confirm('本操作不可恢复，确认删除？');">删除</a> | <a href="<!--{eval echo base_url()}-->admin/admin_goods/index/{$activity['aid']}">产品列表</a></td>
						<tr>
						<!--{/loop}-->
					</tr>
				</table>
			</div>
		<!--分页表单和删除按钮-->
			<div class="footactions">
				<input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')">全选
				<input type="submit" name="batchsubmit" value="批量删除" onclick="return confirm('本操作不可恢复，确认删除？');" class="submit">
				<div class="pages">{$multi}</div>
			</div>
		</form>
	</div>
</div>
<div class="side">
	<!--{template admin/side}-->
</div>

<!--{template admin/footer_tpl}-->